package com.samsungmobile.common_module.Parser;

import java.io.InputStream;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

public interface ResponseParser {

	public InputStream getResponseContent();

	public void setResponseContent(InputStream responseContent);
	
	public ResponseData getResponseData();

	public void process() throws ParserConfigurationException, SAXException;
	
	/*
	* Called when the Parser starts parsing the Current XML File.
	*/
	public void startDocument () throws SAXException;

	/*
	 * Called when the Parser Completes parsing the Current XML File.
	*/
	public void endDocument () throws SAXException;

	/*
	 * Called when the starting of the Element is reached.
	*/
	public void startElement( String namespaceURI, String localName, 
	                            String qName, Attributes atts ) throws SAXException;

	/*
	 * Called when the Ending of the current Element is reached. 
	*/
	public void endElement(String namespaceURI, String localName, String qName);

	/*
	 * While Parsing the XML file, if extra characters like space or enter Character
	 * are encountered then this method is called.
	*/
	public void characters (char buf [], int offset, int length) throws SAXException;


	public void processingInstruction (String target, String data) throws SAXException;
}
